From: Carlos Garnacho Date: Fri, 26 Jan 2024 19:25:02 +0000 (+0100) Subject: keyboard: Drop dead code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~1^2~75 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=834be936665cd237f1abd5a7c175476cd4875cfa;p=gnome-shell.git keyboard: Drop dead code This getGroups() method was not called anywhere for a long time, the last user was dropped at commit 8fdf47ea5b ("keyboard: Do not create widgetry for all keyboard groups at once"). Part-of: --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index c7f244b02..16adf91d3 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -2110,18 +2110,6 @@ class KeyboardController extends Signals.EventEmitter { this.emit('purpose-changed', purpose); } - getGroups() { - let inputSources = this._inputSourceManager.inputSources; - let groups = []; - - for (let i in inputSources) { - let is = inputSources[i]; - groups[is.index] = is.xkbId; - } - - return groups; - } - getCurrentGroup() { // Special case for Korean, if Hangul mode is disabled, use the 'us' keymap if (this._currentSource.id === 'hangul') {